package com.example.mapp;

import com.example.entity.PointDefend;
import com.example.entity.SpotObjectCensus;
import com.example.entity.SpotObjectPlan;
import com.example.mapp.buildSql.PointDefendMappSql;
import com.example.mapp.buildSql.SpotObjectPlanMappSql;
import com.example.mapp.buildSql.SupervisionMappSql;
import org.apache.ibatis.annotations.*;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 实施对象
 */
@Mapper
public interface PointDefendMapp {

    //通过id查询SQL语句
    @SelectProvider(type = PointDefendMappSql.class, method = "findList")
    public List<PointDefend> findList(PointDefend pointDefend) throws Exception;

    @Insert("insert into point_defend (operation_type,operation_content,operation_role,identification,mark,create_by,create_date,must_bean) values (#{operationType},#{operationContent},#{operationRole},#{identification},#{mark},#{createBy},#{createDate},#{mustBean})")
    void insertPointDefend(PointDefend pointDefend);
    @Delete("delete from point_defend where id=#{id}")
    void deletePointDefend(String id);
    @Update("update point_defend set mark=#{mark},update_by=#{updateBy},update_date=#{updateDate} where id=#{id}")
    void updatePointDefend(PointDefend pointDefend);
}
